package lib.wzh.com.libcore.framework.response;

import com.baomidou.mybatisplus.core.metadata.IPage;

import java.io.Serializable;

/**
 * @Author lib
 * @Date 2021/11/23 17:52
 * @ClassName BasePageResponse
 * @Version v1.0
 */

public class BasePageResponse<T> extends BaseResponse<ResponsePageVo<T>> implements Serializable {

    public BasePageResponse(){}

    public BasePageResponse(IPage<T> page){
        super(new ResponsePageVo<>(page));
    }

    public BasePageResponse(String error){
        super("0","分页查询失败",false, new ResponsePageVo<>(error));
    }

}
